/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DAO;

import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Administrator
 */
public class DAOMenu extends BaseDAO {

    private Connection con = getConnection();
    private ResultSet rs = null;
    public ResultSet selectSuject() {
        try {
            Statement stmt = con.createStatement();
            rs = stmt.executeQuery("SELECT * FROM SUBJECT WHERE STATUS = 1");

        } catch (SQLException ex) {
            Logger.getLogger(DAOMenu.class.getName()).log(Level.SEVERE, null, ex);
        }
        return rs;
    }
}
